import {
	http
} from '@/config/common.js'

//获取最新版本和下载地址
export const getVersion = (param) => http.get('/version/version', param)

//获取猜你喜欢的视频资源
export const getGuessYouLike = (param) => http.get('/vod/getGuessYouLike', param)

//增加观看历史
export const addHistory = (param) => http.get('/history/addHistory', param)

//获取用户观看记录
export const getHistory = (param) => http.get('/history/getHistory', param)

//收藏视频
export const addFavourite = (param) => http.get('/favourite/addFavourite', param)

//取消收藏视频
export const deleteFavourite = (param) => http.get('/favourite/delete', param)

//判断用户是否收藏该视频
export const isFavourite = (param) => http.get('/favourite/isFavourite', param)

//获取用户的收藏视频
export const getFavourite = (param) => http.get('/favourite/getFavourite', param)

//获取更新排期表
export const getSchedule = (param) => http.get('/vod/getVodsByWeekType', param)